<template>
  <!-- 新闻页的时间样式 -->
  <div>
    <img src="../../assets/imgs/cl/time.png" alt />
    <span>{{ time }}</span>
  </div>
</template>
<script>
export default {
  name: "TimeStyle",
  props: ["time"],
  data() {
    return {
      newTime: "",
    };
  },
  created() {
    // this.newTime = this.time.slice(0, this.time.indexOf("T"));
  },
};
</script>
<style scoped>
div {
  height: 30px;
  display: flex;
  width: 100px;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #666;
}
</style>
